#include <iostream>
#include <vector>

using namespace std;

// https://leetcode.cn/problems/move-zeroes/?envType=study-plan-v2&envId=top-100-liked

class Solution {
public:
    void moveZeroes(vector<int>& nums) {
        int begin = 0;
        for (int i = 0; i < nums.size(); i++)
        {
            if(nums[i] == 0){
                continue;
            }
            nums[begin++] = nums[i];
        }
        while(begin < nums.size()){
            nums[begin++] = 0;
        }
        return;
    }
};

int main()
{
    return 0;
}